﻿package  
{
	import flash.display.*;
	import flash.display.Bitmap;
	import flash.display.DisplayObject;
	import flash.display.IBitmapDrawable;
	
	/**
	 * ...
	 * @author ...
	 */
	public class PictureSlide extends Slide
	{
		protected var m_bitmap:Bitmap
		
		public function PictureSlide( url:String, description:String ) 
		{
			m_bitmap = null;
			m_requiresPreLoad = true;
			super( url, description );
		}
		
		protected override function loadBmp(content:Object):void
		{
			m_bitmap = content as Bitmap;
			m_bitmap.smoothing = true;
			m_bitmap.pixelSnapping = PixelSnapping.NEVER;
		}

		protected override function unloadBmp():void
		{
			m_bitmap.bitmapData.dispose();
		}
		
		protected override function get bmp():DisplayObject
		{
			return m_bitmap;
		}
	}
}